#
# Copyright (c) 2021 Yangxiaohua
#
# SPDX-License-Identifier: LicenseRef-ZCAN-5-Clause
#

if(CONFIG_ETHERMIND_LIB)
  zephyr_include_directories(include)
  zcanxlib_calculate_lib_path(lib_path)

  set(ETHERMIND_LIB_PATH ${CMAKE_CURRENT_SOURCE_DIR}/${lib_path})

  zephyr_library_import(ETHERMIND_BT_CORE ${ETHERMIND_LIB_PATH}/libethermind_bt_core.a)
  zephyr_library_import(ETHERMIND_BT_A2DP ${ETHERMIND_LIB_PATH}/libethermind_bt_a2dp.a)
  zephyr_library_import(ETHERMIND_BT_AVRCP ${ETHERMIND_LIB_PATH}/libethermind_bt_avrcp.a)
  zephyr_library_import(ETHERMIND_BT_GA ${ETHERMIND_LIB_PATH}/libethermind_bt_ga.a)
  zephyr_library_import(ETHERMIND_BT_GATT ${ETHERMIND_LIB_PATH}/libethermind_bt_gatt.a)
  zephyr_library_import(ETHERMIND_BT_HFP ${ETHERMIND_LIB_PATH}/libethermind_bt_hfp.a)
  zephyr_library_import(ETHERMIND_BT_PL ${ETHERMIND_LIB_PATH}/libethermind_bt_pl.a)
  zephyr_library_import(ETHERMIND_BT_PROTOCOL ${ETHERMIND_LIB_PATH}/libethermind_bt_protocol.a)
  zephyr_library_import(ETHERMIND_BT_SPP ${ETHERMIND_LIB_PATH}/libethermind_bt_spp.a)
  zephyr_library_import(ETHERMIND_BT_UTIL ${ETHERMIND_LIB_PATH}/libethermind_bt_util.a)
  zephyr_library_import(ETHERMIND_OSAL ${ETHERMIND_LIB_PATH}/libethermind_osal.a)  

endif()


